package com.qf.office.admin.common.qo;

import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.groups.Default;
import java.util.Date;

/**
 * 技能表
 *
 * @author 13782
 */
@Data
@Validated
public class SkillQo {
    /**
     * 技能id
     */
    @NotNull(groups = {Update.class})
    @Min(value = 1, message = "ID格式不正确", groups = {Update.class})
    private Integer skillId;

    /**
     * 候选人id
     */
    @NotNull()
    @Min(value = 1, message = "ID格式不正确")
    private Integer candidateId;

    /**
     * 技能名称
     */
    @NotEmpty(message = "技能名称不能为空")
    private String skillName;

    /**
     * 技能类型
     */

    private String skillType;

    /**
     * 技能描述
     */

    private String skillDescription;

    /**
     * 创建时间
     */

    private Date createTime;

    /**
     * 0正常 1删除
     */

    private Integer delStatus;


    public interface Save extends Default {
    }

    public interface Update extends Default {
    }
}